package com.yu.mall.dto.user;

import com.yu.mall.dto.BaseDTO;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.validation.annotation.Validated;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

@Data
@Table(name="user")
@Validated
public class UserDTO extends BaseDTO {

    @ApiModelProperty(value = "姓名")
    private String nickName;

    @ApiModelProperty(value = "性别")
    private String sex;

    @ApiModelProperty(value = "头像")
    private String headimgurl;

    @ApiModelProperty(value = "手机号")
    private String phone;
}